import request from '@/utils/request'

// 获取场站分页列表
export function getchannelPageApi(params: any) {
    return request({
        url: '/ems/channel/selectPage',
        method: 'get',
        params
    })
}
// 获取场站列表
export function getchannelListApi(params: any) {
    return request({
        url: '/ems/channel/list',
        method: 'get',
        params
    })
}
// 新增场站列表
export function addchannelApi(data: any) {
    return request({
        url: '/ems/channel/add',
        method: 'post',
        data
    })
}
// 更新场站列表
export function updatechannelApi(data: any) {
    return request({
        url: '/ems/channel/update',
        method: 'put',
        data
    })
}
// 删除场站列表
export function delchannelApi(id: any) {
    return request({
        url: `/ems/channel/del/${id}`,
        method: 'delete',
    })
}
